import Mock from '../../mockjs/dist/mock-min.js';

let giftOrder = [{
		key: "/gift/record/page",
		method: "get",
		param: {
			current: 1,
			size: 10,
			clientId: 1,
			searchKey: {
				reciver: '',
				giftName: '',
				clientId: ''
			}
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						'id': '@increment()',
						'giftId': '@increment()',
						'giftName': '@cparagraph()',
						'giftPoint|1-3': /[1-9]/,
						'statu|1': ["CAL", "USD", "URD", "CON", "FIN", ],
						'cover|1': [
							"https://bpic.588ku.com/original_origin_min_pic/18/05/06/84ba2ae50b7fc24cfd5d6031d730d153.jpg",
							"https://bpic.588ku.com/original_origin_min_pic/19/06/17/1c3ab4ae6661ef3085b4045fd173ad6b.jpg",
							"https://bpic.588ku.com//back_origin_min_pic/22/10/31/795285179488e8478f87138d7ec3f393.jpg",
							"https://bpic.588ku.com//back_origin_min_pic/22/10/28/471bf0409a1839613fc5aa1cae1473ac.jpg",
						],
						'count|1-3': /[1-9]/,
						'total|1-3': /[1-9]/,
						'tel|11': /[1-9]/,
						'clientId': '@increment(1)',
						'clientName': '@cname()',
						'reciver': '@cname()',
						'address': '@cparagraph()',
						'ct': '@datetime("yyyy-MM-dd hh:mm:ss")'
					}, ]
				}
			});
		}
	},
	{
		key: "/gift/record/info",
		method: "get",
		param: {
			id: 0,
		},
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				'id': '@increment()',
				'giftId': '@increment()',
				'giftName': '@cparagraph()',
				'statu|1': ["CAL", "USD", "URD", "CON", "FIN", ],
				'giftPoint|1-3': /[1-9]/,
				'cover|1': [
					"https://bpic.588ku.com/original_origin_min_pic/18/05/06/84ba2ae50b7fc24cfd5d6031d730d153.jpg",
					"https://bpic.588ku.com/original_origin_min_pic/19/06/17/1c3ab4ae6661ef3085b4045fd173ad6b.jpg",
					"https://bpic.588ku.com//back_origin_min_pic/22/10/31/795285179488e8478f87138d7ec3f393.jpg",
					"https://bpic.588ku.com//back_origin_min_pic/22/10/28/471bf0409a1839613fc5aa1cae1473ac.jpg",
				],
				'count|1-3': /[1-9]/,
				'total|1-3': /[1-9]/,
				'tel|11': /[1-9]/,
				'clientId': '@increment(1)',
				'clientName': '@cname()',
				'reciver': '@cname()',
				'address': '@cparagraph()',
				'ct': '@datetime("yyyy-MM-dd hh:mm:ss")'

			},
		})
	},

	{
		key: "/gift/record/info",
		method: "post",
		param: {
			giftId: 0,
			count: 0,
			addressId: 0,
		},
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				'id': '@increment()',
			},
		})
	},

	{
		key: "/gift/record/info",
		method: "put",
		param: {
			id: 0,
			statu: 'CAL'
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'id': '@increment()',
					'giftId': '@increment()',
					'giftName': '@cparagraph()',
					'statu|1': ["CAL", "USD", "URD", "CON", "FIN", ],
					'giftPoint|1-3': /[1-9]/,
					'cover|1': [
						"https://bpic.588ku.com/original_origin_min_pic/18/05/06/84ba2ae50b7fc24cfd5d6031d730d153.jpg",
						"https://bpic.588ku.com/original_origin_min_pic/19/06/17/1c3ab4ae6661ef3085b4045fd173ad6b.jpg",
						"https://bpic.588ku.com//back_origin_min_pic/22/10/31/795285179488e8478f87138d7ec3f393.jpg",
						"https://bpic.588ku.com//back_origin_min_pic/22/10/28/471bf0409a1839613fc5aa1cae1473ac.jpg",
					],
					'count|1-3': /[1-9]/,
					'total|1-3': /[1-9]/,
					'tel|11': /[1-9]/,
					'clientId': '@increment(1)',
					'clientName': '@cname()',
					'reciver': '@cname()',
					'address': '@cparagraph()',
					'ct': '@datetime("yyyy-MM-dd hh:mm:ss")'

				},
			});
		}
	},








];

export default giftOrder;
